<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>系统配置</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  <link rel="stylesheet" href="${s.base}/js/layui/css/layui.css" media="all" />
  <link rel="stylesheet" href="${s.base}/css/base/base.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
  <input type="hidden" id="id" name="id" value="${baseConfig.id}">
  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">到账日期</label>
    <div class="layui-input-block">
      <input type="text" class="layui-input " id="inBankDay" name="inBankDay" value="${baseConfig.inBankDay}" placeholder="请输入到账日期配置" maxlength="30" lay-verify="required|number">
    </div>
  </div>

  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">提现利率</label>
    <div class="layui-input-block">
      <input type="text" class="layui-input " id="rayaltyRate" name="rayaltyRate" value="${baseConfig.rayaltyRate}" placeholder="请输入提现利率" maxlength="30" lay-verify="required|money">
    </div>
  </div>

  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">一级分销价</label>
    <div class="layui-input-block">
      <input type="text" class="layui-input " id="distPriceOne" name="distPriceOne" value="${baseConfig.distPriceOne}" placeholder="请输入一级分销价" maxlength="30" lay-verify="required|money">
    </div>
  </div>

  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">二级分销价</label>
    <div class="layui-input-block">
      <input type="text" class="layui-input " id="distPriceTwo" name="distPriceTwo" value="${baseConfig.distPriceTwo}" placeholder="请输入二级分销价" maxlength="30" lay-verify="required|money">
    </div>
  </div>

  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">分佣设置</label>
    <div class="layui-input-block">
      <div id="subCommission">

      </div>
    </div>
  </div>

  <div class="layui-form-item layui-row layui-col-xs12">
    <label class="layui-form-label">会员须知</label>
    <div class="layui-input-block">
      <div id="memberNotice">

      </div>
    </div>
  </div>

  <div class="layui-form-item layui-row layui-col-xs12">
    <div class="layui-input-block">
      <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="btnSubmit">确定</button>
      <!--<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary closeLay">取消</button>-->
    </div>
  </div>
</form>
<script type="text/javascript" src="${s.base}/js/layui/layui.js"></script>
<script type="text/javascript" src="${s.base}/js/wangEditor/wangEditor.js"></script>
<script type="text/javascript" src="${s.base}/js/base/yyg/baseConfigUpdateOrSave.js"></script>
<script type="text/javascript" src="${s.base}/js/base/jquery-3.2.0.min.js"></script>
<script type="text/javascript" src="${s.base}/js/base/ajaxfileupload.js"></script>
<script>
  var E = window.wangEditor;
  var subCommissionEditor = new E('#subCommission');
  subCommissionEditor.customConfig.uploadFileName = 'myfiles';
  subCommissionEditor.customConfig.uploadImgServer = '/file/fileUploadEditor';
  subCommissionEditor.create();

  var subCommission = '${baseConfig.subCommission}';
  subCommissionEditor.txt.html(subCommission);

  var memberNoticeEditor = new E('#memberNotice');
  memberNoticeEditor.customConfig.uploadFileName = 'myfiles';
  memberNoticeEditor.customConfig.uploadImgServer = '/file/fileUploadEditor';
  memberNoticeEditor.create();

  var memberNotice = '${baseConfig.memberNotice}';
  memberNoticeEditor.txt.html(memberNotice);
</script>
</body>
</html>